import request from '@/utils/request'
import { loginFrom, loginResponseData, userInfoResponseData } from './type'
enum API {
  LOGIN_URL = '/user/login',
  USERINFO_URL = '/user/info',
}
export const reqlogin = (data: loginFrom) =>
  request.post<loginResponseData>(API.LOGIN_URL, data)
/* 获取用户信息接口方法 */
export const requserInfo = () =>
  request.get<userInfoResponseData>(API.USERINFO_URL)
